package com.iussoft.tdengine.datasource;

import java.io.Serializable;

/**
 * @description: 数据库连接模型
 * @author: Hou Dayu
 * @date: Created in 2020/11/6
 */
public class TDDatasource implements Serializable {

    private int maxActive=0;
    private int maxWate=0;
    private int minIdle=0;
    private int initialSize=0;
    private String diverClassName="com.taosdata.jdbc.TSDBDriver";
    private String url;
    private String username;
    private String password;

    public TDDatasource(){

    }

    public TDDatasource(String url,String username,String password){
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public int getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(int maxActive) {
        this.maxActive = maxActive;
    }

    public int getMaxWate() {
        return maxWate;
    }

    public void setMaxWate(int maxWate) {
        this.maxWate = maxWate;
    }

    public int getMinIdle() {
        return minIdle;
    }

    public void setMinIdle(int minIdle) {
        this.minIdle = minIdle;
    }

    public int getInitialSize() {
        return initialSize;
    }

    public void setInitialSize(int initialSize) {
        this.initialSize = initialSize;
    }

    public String getDiverClassName() {
        return diverClassName;
    }

    public void setDiverClassName(String diverClassName) {
        this.diverClassName = diverClassName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
